<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	FaqForm form = (FaqForm)request.getAttribute("command");
	String status = request.getAttribute("status")+"";
	String errorJson = "";
	if(null!=request.getAttribute("errorJson")){
		errorJson = request.getAttribute("errorJson")+"";
	}
%>
<script>
	<%
		if("SUCCESS".equalsIgnoreCase(status)){
			%>
				top.$.messager.show({
					showType:'fade',
					msg:"添加成功",
					title:"提示",
					timeout:"1000"
				}); 
				top.XF.Faq.manageFaq();
			<%
		}else{
			%>
			  	top.$.messager.show({
					title:'提示',
					msg:'添加失败:',
					timeout:5000,
					showType:'slide'
				  });
				var errorJson = '<%=errorJson%>';
				errorJson = JSON.parse(errorJson);
				top.XF.Faq.refreshAfterAddFaild(errorJson);
			<%
		}
	%>
</script>